package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:40:32
 */
@Getter
@Setter
@TableName("t_comment")
@Accessors(chain = true)
public class Comment {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("test_code")
    private Long testCode;
    private Integer display;

    /**
     * 被评论者code
     */
    @TableField("commented_code")
    private Long commentedCode;

    /**
     * 评论code
     */
    @TableField("comment_code")
    private Long commentCode;

    @TableField("comment_update_time")
    private Date commentUpdateTime;

    @TableField("comment_create_time")
    private Date commentCreateTime;

    /**
     * 点赞量
     */
    @TableField("like_number")
    private Integer likeNumber;

    /**
     * 评论内容
     */
    @TableField("comment_detail")
    private String commentDetail;

    /**
     * 用户姓名
     */
    @TableField("comment_name")
    private String username;
    /**
     * 用户头像url地址
     */
    @TableField("comment_imgUrl")
    private String profilePhoto;
    @TableField("parent_id")
    private Long parentId;

}
